/*
 * @Author: your name
 * @Date: 2020-06-01 15:19:20
 * @LastEditTime: 2020-06-01 15:28:09
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \codeSnippet\nodejsAPI练习\readdri.js
 */ 
const fs = require('fs')
// readfir  异步读取目录路径下文件名称   ['vue.js','index.html']
fs.readdir('../canvas',function(err,files){
  if(err) throw err;
  console.log(files)
})